<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组中元素的删除</title>
</head>
<body>
<script !src="">
    let arr = [1, 2, 3, 4, 5, 6, 7, 8, 9]

    /*let result = arr.splice(5);
    console.log(arr);
    console.log(result);*/

    /*let result = arr.splice(5, 2);
    console.log(arr);
    console.log(result);*/

    let result = arr.splice(5, 2,0);
    console.log(arr);
    console.log(result);




</script>
</body>
</html>